package com.config;

import com.example.annotation.ConditionOnSystem;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HelloConfig2 {

    @Bean
    World world() {
        System.out.println("加载HelloConfig222222222222222222222222222222222~");
        return new World();
    }

    @ConditionOnSystem(value = "linux")
    @Bean(name = "world2")
    World world2() {
        System.out.println("=======================");
        return new World();
    }


}
